package com.duobaoyu.dby.supply.db.entity.order;

import com.baomidou.mybatisplus.annotation.*;
import com.duobaoyu.dby.common.mybatis.base.BaseEntity;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.*;
import lombok.experimental.Accessors;

/**
 * 订单运单信息表
 *
 * @author LY
 * @email 249007302@qq.com
 * @date 2023-09-26 10:42:54
 */
@Data
@Builder
@NoArgsConstructor
@AllArgsConstructor
@TableName("sc_order_logistics")
@Accessors(chain = true)
@ApiModel(value = "订单运单信息表")
@EqualsAndHashCode(callSuper = true)
public class OrderLogistics extends BaseEntity {
	private static final long serialVersionUID = 1L;

	/**
	 * 主键
	 */
	@TableId(type = IdType.ASSIGN_ID)
	private Long id;
	/**
	 * 快递承运编号
	 * 模型该字段若有变动，请检查
	 * PreWarningConfigConverter#parsePreWarningCondition(PreWarningConfig)
	 */
	@ApiModelProperty(value = "快递承运编号")
	@TableField("delivery_order_sn")
	private String deliveryOrderSn;
	/**
	 * 快递承运人
	 */
	@ApiModelProperty(value = "快递承运人")
	private String deliveryCarrier;
	/**
	 * 包裹id
	 */
	@ApiModelProperty(value = "包裹id")
	private String packageId;
	/**
	 * 供应链交易单号(叶子节点)
	 */
	@ApiModelProperty(value = "供应链交易单号(叶子节点)")
	private String orderSn;
	/**
	 * 版本号-用作乐观锁
	 */
	@Version
	@ApiModelProperty(value = "版本号-用作乐观锁")
	private Integer version;
	/**
	 * 是否删除 0-否 1-是
	 */
	@TableLogic(value = "0", delval = "1")
	@ApiModelProperty(value = "是否删除 0-否 1-是")
	private Integer delFlag;


}
